package com.ruoyi.project.business.monthsalary.service;

import com.ruoyi.project.business.monthsalary.entity.MonthSalary;
import com.ruoyi.project.business.monthsalary.request.CulMonthSalaryRequest;
import com.ruoyi.project.business.monthsalary.request.ListMonthSalaryRequest;
import com.ruoyi.project.business.monthsalary.response.MonthSalaryResponse;

import java.math.BigDecimal;
import java.util.List;

/**
 * 月薪Service接口
 * 
 * @author ${author}
 * @date 2024-02-20
 */
public interface IMonthSalaryService {
    /**
     * 查询月薪
     * 
     * @param id 月薪ID
     * @return 月薪
     */
    public MonthSalary selectMonthSalaryById(Long id);

    /**
     * 查询月薪列表
     * 
     * @return 月薪集合
     */
    public List<MonthSalaryResponse> selectMonthSalaryList(ListMonthSalaryRequest request, Long tenantId);

    /**
     * 新增月薪
     * 
     * @param monthSalary 月薪
     * @return 结果
     */
    public int insertMonthSalary(MonthSalary monthSalary, Long operatorId, Long tenantId);

    /**
     * 修改月薪
     * 
     * @param monthSalary 月薪
     * @return 结果
     */
    public int updateMonthSalary(MonthSalary monthSalary, Long operatorId, Long tenantId);

    /**
     * 批量删除月薪
     * 
     * @param ids 需要删除的月薪ID
     * @return 结果
     */
    public int deleteMonthSalaryByIds(Long[] ids, Long operatorId, Long tenantId);

    /**
     * 删除月薪信息
     * 
     * @param id 月薪ID
     * @return 结果
     */
    public int deleteMonthSalaryById(Long id, Long operatorId, Long tenantId);

    BigDecimal culUserSalary(CulMonthSalaryRequest request, Long tenantId, Long operatorId);

    void culDeptSalary(CulMonthSalaryRequest request, Long tenantId, Long operatorId);
}
